#!/usr/bin/env python

'''Application Setup

@author Julot <andy.julot@gmail.com>
@since Monday, June 13, 2011. 05:10 PM'''

import hana
import sys
import py2exe

from distutils.core import setup

# If run without args, build executables, in quiet mode.
if len(sys.argv) == 1:
    sys.argv.append("py2exe")
    sys.argv.append("-q")

py2exe = {'compressed': 1,
          'optimize': 2,
          'bundle_files': 1,
          'dist_dir': '.',
          'excludes': ['javax.comm'],
          'dll_excludes': ['w9xpopen.exe', 'mswsock.dll', 'MSVCR71.dll'],
          'includes': [],
          'packages': ['httplib2', 'restclient', 'serial']}

setup(options={"py2exe": py2exe}, zipfile=None, console=[hana.Meta()])